home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times: The Month 2003 December
/
The Sunday Times - The Month 2003-12.iso
/
mac
/
The Month DEC 03
/
engine
/
modules
/
lists.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2003-08-19
|
2KB
|
57 lines
function loadImage(mc, node, extrapath)
{
extrapath != null ? 0 : (extrapath = "");
var strDefaultPath = Tardis.ASSETS_FOLDER + "images/" + Tardis.ActiveSection.id + "/";
var strImg = node.getText();
var diffpath = node.attributes.path;
if(diffpath != null)
{
strImg = diffpath + strImg;
}
else
{
strImg = strDefaultPath + extrapath + strImg;
}
strPathPrefix != null ? 0 : (strPathPrefix = "");
mc.loadMovie(strPathPrefix + strImg);
}
function init()
{
var strID = Tardis.ActiveSection.id;
var Colors = Tardis.Colors;
strSECTION_COLOR = Colors.getString(strID);
SECTION_COLOR = Colors.getHex(strID);
SECTION_COLOR50 = Colors.getString(strID + "50");
DEFAULT_COLOR = Colors.getString("default");
DEFAULT_COLOR50 = Colors.getString("default50");
ndItems = nodeData.byName("items");
ndListing = nodeData.byName("listing");
var strTitle = "<FONT COLOR=\"" + strSECTION_COLOR + "\">" + ndListing.byName("title").getText() + " </FONT>";
strTitle += "<FONT COLOR=\"" + SECTION_COLOR50 + "\"> " + ndListing.byName("title2").getText() + "</FONT>";
strTitle += "<FONT COLOR=\"" + DEFAULT_COLOR50 + "\"> " + ndListing.byName("title3").getText() + "</FONT>";
listingTitleFF.htmlText = strTitle;
listingTitleFF.resize();
if(listingTitleFF._height > 40)
{
attachMovie("items2MC","itemMC",++depth);
itemMC._x = 8;
itemMC._y = 61;
}
else
{
attachMovie("items1MC","itemMC",++depth);
itemMC._x = 8;
itemMC._y = 38;
}
onComplete();
}
function exit()
{
delete ndItems;
delete ndDefault;
delete nodeData;
}
stop();
onReady();
depth = 0;